package nosqlconnect.connection.providers;

import nosqlconnect.connection.ConnectionList;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class ConnectionContentProvider implements IStructuredContentProvider{

	@Override
	public Object[] getElements(Object inputElement) {
		
		return ((ConnectionList)inputElement).getConnections().toArray();
	}

	@Override
	public void dispose() {
	}

	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	}

}
